/**
 * BudgetBuoy
 * 
 * Simplify your personal expense management
 * 
 * @team cs2103jan13-w15-3j
 */

//--------------------------------------------------------------

/**
 * Mode Class
 * 
 * Description: Mode of payment
 * 
 * 
 * @package shared
 * @author Tan Si Ling(A0085314J)
 * @editor(s) -
 */


package shared; 

public class Mode {

	private String modeName;

	//constructor
	public Mode(String modeName){
		this.modeName = modeName;
	}

	//getters and setters
	public void modifyName(String newModeName){
		this.modeName = newModeName;
	}

	public String getName(){
		return modeName;
	}

	//toString
	@Override
	public String toString(){
		
//		String modeString = modeName +"                    ";
		
//		return modeString.substring(0,20); //limited to 20 characters
		return modeName;
	}
}
